<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="果果,果果网,果果街,淘宝网导购,淘宝母婴,母婴用品,母婴产品,母婴网购,怀孕,孕期,婴幼儿,儿童,0-1岁,1-3岁,3-6岁,妈妈购物分享,逛淘宝,童装,童鞋,玩具,早教,启蒙,亲子,亲子装,纸尿裤,奶粉,母婴类美丽说,母婴类蘑菇街,母婴类爱乐活" />
<meta name="description" content="看看妈妈们为宝宝淘到的好东西，参加品牌母婴电商限时高额返利活动，推荐别人购买自己拿佣金，果果街是妈妈分享育儿消费经验，网购省钱的好地方。" />
<title>私信</title>
<%@include file="../common/js.jsp" %>
<%@include file="../common/css.jsp" %>
<link href="../../css/v4/detail.css" type="text/css" rel="stylesheet" />

<!--[if ie 6]><script src="../../js/v4/iepng.js" type="text/javascript"></script><![endif]-->
<!--[if ie]><link href="../../css/v4/common/IE.css" type="text/css" rel="stylesheet"><![endif]-->
</head>

<body>
	<!-- head -->
     <%@include file="../common/header.jsp" %>
    <!-- head--end-->
    <!-- home_menu-->
    <%@include file="menu.jsp" %>
    <!-- home_menu--end-->
    <!-- body -->
    <div class="w100p pt20 pb35">
    	<div class="w980 mg clearfix">
        	<div class="home_left_s2">
            	<div class="hl_pd_s1">	
                    <ul class="com_tabs">
                        <li >
                             <a href="message.htm">通知&nbsp;
                            	 <c:if test="${msgSystem >0}">
                             		<i class="clrred">+${msgSystem}</i>
                             	</c:if>
                             </a>
                        </li>
                        <li class="current">
                            <a href="#">私信</a>
                        </li>
                    </ul>
                   <div class="notice_box">
                    	<%-- <p class="notice_nums">${pageModel.totalRecord}条通知</p> --%>
                        <ul class=" lay_lr_box notice_det">
                        
                        <c:forEach items="${pageModel.list}" var="mmsg">
                        
                        <c:choose>
                       	 <c:when test="${mmsg.sendMember==member.identifier}">
                        	<li>
                            	<div class="l_box">
                                	<a href="#"><img src="${mmsg.sendOwnerImageServer}${mmsg.sendOwnerAvatar}" class="block" width="50px;" height="50px;"/></a>
                                </div>
                                <div class="r_box">
                                	<p class="pubdate">${mmsg.lastDate} </p>
                                	<p class="info">
								        	<a href="javascript:;" class="gz">你</a> 对 <a href="javascript:;" class="gz"><i class="clrpink">${mmsg.receiveOwnerName}</i></a> 说到：
								        	${mmsg.content}
								        </p>
                                    <div> <a href="javascript:GUOGUO.deleteMessage('${mmsg.identifier}');">删除</a></div>
                                </div>
                            </li>
                            </c:when>
                            <c:otherwise>
                            	<li>
                            	<div class="l_box">
                                	<a href="#"><img src="${mmsg.sendOwnerImageServer}${mmsg.sendOwnerAvatar}" class="block" width="50px;" height="50px;"/></a>
                                </div>
                                <div class="r_box">
                                	<p class="pubdate">${mmsg.lastDate} <i class="clrpink">${mmsg.sendOwnerName}</i></p>
                                    <p class="info">
                                    	<span>对<i class="clrpink">你</i>说到：</span>${mmsg.content}
                                    </p>
                                    <div><a href="javascript:;" onclick="replyMsg('${mmsg.identifier}')">回复</a> | <a href="javascript:GUOGUO.deleteMessage('${mmsg.identifier}');">删除</a></div>
                                </div>
                            </li>
                            </c:otherwise>
                        </c:choose>    
                        </c:forEach>
                        
                            
                        </ul>
                    </div>
                </div>
            </div>
            <%@include file="meInfo.jsp"%>
        </div>
    </div>
    
    <div class="release_box send_mes tc_box" id="msgWindows" style="display: none;">
    </div>
    <!-- body--end-->
    <script type="text/javascript">

    	function replyMsg(msgId) {
			
			$("#msgWindows").load("msgwindows.htm?msgId="+msgId,function(){
				$.fn.popDiv({
					tcID:"msgWindows",isZZ:false,speed:200,noResize:false
				});	
			});
			
		}
	</script>
</body>

</html>
